package com.tuling.learnjuc.demo;

/**
 * @author: Fox
 * @Desc:
 **/
public class IntegerDemo {
    public static void main(String[] args) {

        Integer a = 100; //new Integer(100);  valueOf
        Integer b = 100;
        System.out.println(a.equals(b));  // true or false

        a = 1000;  //new Integer(1000);
        b = 1000;
        System.out.println(a.equals(b)); // true or false


    }
}
